feat(cloud_server): implement SSL secure websocket from semver2 into semver3 - #723
Open
Boss-1s wants to merge 14 commits into
Open
feat(cloud_server): implement SSL secure websocket from semver2 into semver3#723Boss-1s wants to merge 14 commits into
Boss-1s wants to merge 14 commits into
Conversation
…semver3 Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
- Moved `BaseCloudServer` (Formerly `_SaCloudServer`) to sa.eventhandlers._base Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Contributor
Author
TheCommCraft
reviewed
Sep 2, 2026
Collaborator
|
Tell me if you require help in applying these changes |
(cherry picked from commit 8d30697) Signed-off-by: GitHub <noreply@github.com>
Boss-1s
force-pushed
the
semver3-secure-ws
branch
from
September 2, 2026 21:40
9a6846e to
2950297
Compare
### sa.eventhandlers._base - changed list comp to generator comp in set_project_vars() and set_var() - reimplemented attribute type hints into BaseCloudServer. since type hints are inhierted, there is no need to restate them in child classes of BaseCloudServer. ### sa.eventhandlers.cloud_server - added type hitns to __init__ of BaseCloudServer child classes - added type hints to init_cloud_server and init_ssl_cloud_server - revert changing warnings.warn to print in 9863d50 Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
TheCommCraft
requested changes
Sep 2, 2026
Co-authored-by: TheCommCraft <79996518+TheCommCraft@users.noreply.github.com> Signed-off-by: Boss_1s <95505913+Boss-1s@users.noreply.github.com>
TheCommCraft
requested changes
Sep 3, 2026
| ) | ||
| ) | ||
|
|
||
| def set_var(self, project_id, var_name, value, *, user="@server", skip_forward=None): |
Collaborator
There was a problem hiding this comment.
Maybe we should change the server to store the variables with their actual names and then add the option to skip adding the cloud prefix
Collaborator
There was a problem hiding this comment.
Further examination is required to determine whether the current implementation works. I might have time to do this later but at the moment I am busy.
Collaborator
|
I'm just going to try and apply these changes myself |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves nothing
Changes
_SaWebSockectServerBaseWebSocketServerinsa.eventhandlers._baseto keep things pythonic and organizedTests
First, start up an insecure server to ensure it works:
While the above script is running, run
websocat ws://127.0.0.1:8080to interact with the websocket.Once you have determined that this works, replace the above script with the one below:
Then, generate an OpenSSL certificate:
Finally, run the server script, and interact with the WebSocket with
websocat -k wss://127.0.0.1:8080Notes
might wanna have #722 fixed before merging this, idk